names = fieldnames(gResultData);
for i = 1:length(names)
    if eval(['size(gResultData.',names{i},',3)>5'])
        eval(['gResultData.',names{i},'=gResultData.',names{i},'(:,:,1:3)'])
    end
end